public class Order {
    private String day;
    private String time;
    private String name;
    private String bs;
    private int vol;
    private double price;
    private double amount;
    private int remain;
    private double profit;
    private double rate;
    private String bnote = "";
    private String line;
    private long holdTime = 0;

    public long getHoldTime() {
        return holdTime;
    }

    public void setHoldTime(long holdTime) {
        this.holdTime = holdTime;
    }

    public String getBnote() {
        return bnote;
    }

    public void setBnote(String bnote) {
        this.bnote = bnote;
    }

    public String getDay() {
        return day;
    }

    public void setDay(String day) {
        this.day = day;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBs() {
        return bs;
    }

    public void setBs(String bs) {
        this.bs = bs;
    }

    public int getVol() {
        return vol;
    }

    public void setVol(int vol) {
        this.vol = vol;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public double getAmount() {
        return amount;
    }

    public void setAmount(double amount) {
        this.amount = amount;
    }

    public int getRemain() {
        return remain;
    }

    public void setRemain(int remain) {
        this.remain = remain;
    }

    public String getLine() {
        return line;
    }

    public void setLine(String line) {
        this.line = line;
    }

    public double getProfit() {
        return profit;
    }

    public void setProfit(double profit) {
        this.profit = profit;
    }

    public double getRate() {
        return rate;
    }

    public void setRate(double rate) {
        this.rate = rate;
    }

    @Override
    public int hashCode() {
        return toString().hashCode();
    }

    @Override
    public String toString() {
        String line = day+" "+time+" "+name+" "+bs+" "+vol+" " + price + " " + amount + " " + remain;
        return line;
    }

    @Override
    public boolean equals(Object other) {
        if(other == null || !(other instanceof Order)) {
            return false;
        }
        return this.toString().equals(other.toString());
    }
}
